###
 # @Author: 周广斌
 # @Date: 2024-03-12 19:36:08
 # @LastEditTime: 2024-03-13 21:35:38
 # @Description: TODO 共享打印机服务
### 

docker run -d \
--name=cupsd \
--restart=always \
-p 631:631/tcp \
-v /var/run/dbus:/var/run/dbus \
-v /data/cups/config:/config \
-v /data/cups/services:/services \
--device /dev/bus \
--device /dev/usb \
-e TZ=Asia/Shanghai \
olbat/cupsd \
bash -c "echo 'root:printer' | chpasswd && /usr/sbin/cupsd -f"

http://192.168.0.103:631/admin